package yf.mall.vo.up;


import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;



import yf.mall.entity.AppCategoryEntity;
import yf.mall.vo.AppCategoryVo;

                                
/**
 * 分类信息表实体
 * 表名 app_category
 *
 *
 *
 * @date Thu Aug 10 10:16:43 CST 2023
 */
@Data
public class AppCategoryUp implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //类目ID
            @ExcelProperty("类目ID")
            private Long id;
        
                        //类目值
            @ExcelProperty("类目值")
            private Long type;
        
                        //类目名称
            @ExcelProperty("类目名称")
            private String name;
        
                        //类目层级
            @ExcelProperty("类目层级")
            private Integer level;
        
                        //根id
            @ExcelProperty("根id")
            private Long rootId;
        
                        //备注
            @ExcelProperty("备注")
            private String remark;
        
                        //创建时间
            @ExcelProperty("创建时间")
            private Date createTime;
        
                        //父级type
            @ExcelProperty("父级type")
            private Long parentType;
        
    
    public AppCategoryUp() {

    }

    public AppCategoryVo toVo() {

        AppCategoryEntity entity = new AppCategoryEntity();
            AppCategoryVo vo = new AppCategoryVo(entity);
                                    entity.setId(id);
            
                                    entity.setType(type);
            
                                    entity.setName(name);
            
                                    entity.setLevel(level);
            
                                    entity.setRootId(rootId);
            
                                    entity.setRemark(remark);
            
                                    entity.setCreateTime(createTime);
            
                                    entity.setParentType(parentType);
            
        
        return  vo;
    }



}
